<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header">套餐管理-编辑</head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="baseId" name="baseId" type="hidden" th:value="${maternityCombos.baseId}">
                        <input id="combosId" name="combosId" type="hidden" th:value="${maternityCombos.id}">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">套餐名称：</label>
                            <div class="col-sm-2">
                                <input id="combosName" name="combosName" class="form-control" type="text" th:value="${maternityCombos.combosName}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">套餐金额：</label>
                            <div class="col-sm-2">
                                <input id="combosFee" name="combosFee" class="form-control" type="text" th:value="${maternityCombos.combosFee}">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">---</label>
                            <div class="col-sm-10">

                                <div th:each="categoryDO:${maternityCombos.categoryDOS}">
                                    <div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">#</label>
                                            <div class="col-sm-3">
                                                <!--<input id="category" name="category" th:value="${categoryDO.category}"
                                                       class="form-control" type="text">-->
                                                <label th:text="${categoryDO.category}"></label>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-1 control-label"></label>
                                            <div class="col-sm-11">
                                                <div class="row">
                                                    <div class="col-sm-12">
                                                        <div class="ibox float-e-margins">
                                                            <div class="ibox-content">
                                                                <table class="table table-bordered">
                                                                    <thead>
                                                                    <tr>
                                                                        <th>编号</th>
                                                                        <th>项目名称</th>
                                                                        <th>备注</th>
                                                                        <th>#</th>
                                                                    </tr>
                                                                    </thead>
                                                                    <tbody class="itemId_1">
                                                                    <tr th:each="item:${categoryDO.items}">
                                                                        <td th:text="${item.itemNo}"></td>
                                                                        <td th:text="${item.itemName}"></td>
                                                                        <td th:text="${item.itemRemark}"></td>
                                                                        <td>
                                                                            <input id="itemId" name="itemId" type="hidden" th:value="${item.id}">
                                                                            <input name="itemIntro" th:value="${item.itemIntro}" class="form-control" type="text">
                                                                        </td>
                                                                    </tr>
                                                                    </tbody>
                                                                </table>

                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>


                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>


                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/usabb/maternityCombos/edit.js">
</script>
</body>
</html>
